theme
theme(name; kwrgs...)
Offer themes support. name is the theme name. So far the three options are:
modern: - This is the default theme (same as GMT modern theme but with thinner FRAME_PEN [0.75p])
classic: - The GMT classic theme
dark: - A modern theme variation with dark background.
A0|2[XY|XX|YY][atg][ag][g][H][V][NT|nt][ITit][Graph][Dark]Make a composition of these to select a theme. The main condition is that it starts with an A (Annotate). HenceA2means annotate two axis andA0means no axes at all.XYmeans to plot only left and bottom axes,YYonly left and right andXXbottom and top.atg(orafg) means annotate, tick and grid lines.agdoes not tick.HandVmeans grid lines will only be horizontal or vertical. Note, these requireatgorag.NTstands for no ticks at all andITplots the ticks inside the axes.Graphadds a vector to the end of each axis (setsXY), andDarkput the background in dark mode.Example:
A2YYg-> plot left and right axes (only) and add grid lines.Example:
A2Graph-> plot left and right axes (only) and adds arrows at the end of them
On top of the modern mode variations (so far dark only) one can set the following kwargs options:
noticksorno_ticks: Axes will have annotations but no tick marks
inner_ticksorinnerticks: - Ticks will be drawn inside the axes instead of outside.
gray_gridorgraygrid: - When drawing grid line usegrayinstead ofblack
save: - Save the name in the directory printed byGMT.GMTuserdir[1]and make it permanent.
reset: - Remove the saved theme name and return to the defaultmoderntheme.
Note: Except save and reset, the changes operated by the kwargs are temporary and operate only until an image is show(n) or saved.
This function can be called alone, e.g. theme("dark") or as an option in the plot module.
These docs were autogenerated using GMT: v1.23.0